<%@page import="com.itsm.v17.entity.OpinionStatistics"%>
<%@page import="java.util.List"%>
<%@ page pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
OpinionStatistics statistics=(OpinionStatistics)request.getAttribute("statistics");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>评价统计</title>
<link href="<%=basePath%>css/home.css" type="text/css" rel="stylesheet" />
<script src="<%=basePath%>js/DatePicker/WdatePicker.js" type="text/javascript"></script>
<link href="<%=basePath%>js/DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css">
<style>
.tableblue00 td{
padding:5px;
}
</style>
<script>
function query()
{
	var startDate=document.getElementById("startDate").value;
	var endDate=document.getElementById("endDate").value;
	location.href="<%=basePath%>itsm17/workorder/opinion/statistics?startDate="+startDate+"&endDate="+endDate;
}
</script>
</head>
<body style="padding:5px;margin:0px;">
	    <table width="100%" cellspacing="1" cellpadding="0" border="0" bgcolor="#D6E6F4" class="tableblue00">
                            <tbody>
                            <tr class="bbzxbg2">
                              <td colspan=3 >
                              	 发起时间(起)： <input type="text" id="startDate" value="<%=statistics.getStartDate()%>"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                              	 &nbsp; &nbsp; &nbsp; &nbsp;
                              	 发起时间(止)： <input type="text" id="endDate" value="<%=statistics.getEndDate()%>" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                              	 &nbsp; &nbsp; &nbsp; &nbsp;
                              	 
                              	 <a class="actionbutton"  href='javascript:void();' onclick="query()" class="menudiv" style="margin-right: 10px;">查询</a>
                              </td>
                            </tr></tbody>
          </table>
                     <br/>
                     
<table width="100%" cellspacing="1" cellpadding="0" border="0" bgcolor="#D6E6F4" class="tableblue00">
   <tbody>
          <tr class="bbzxbg2">
                <td width="20%">发起流程数</td><td align="left"><%=statistics.getStartCount()%></td>
         </tr>  
         <tr class="bbzxbg2">
                <td width="20%">完成流程数</td><td align="left"><%=statistics.getEndCount()%></td>
         </tr> 
         <tr class="bbzxbg2">
                <td width="20%">提交评价数</td><td align="left"><%=statistics.getOpinionCount()%></td>
         </tr> 
         <tr class="bbzxbg2">
                <td width="20%">工程师评价1星</td><td align="left"><%=statistics.getGradeCountLevel1()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">工程师评价2星</td><td align="left"><%=statistics.getGradeCountLevel2()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">工程师评价3星</td><td align="left"><%=statistics.getGradeCountLevel3()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">工程师评价4星</td><td align="left"><%=statistics.getGradeCountLevel4()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">工程师评价5星</td><td align="left"><%=statistics.getGradeCountLevel5()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">服务台评价1星</td><td align="left"><%=statistics.getServiceGradeCountLevel1()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">服务台评价2星</td><td align="left"><%=statistics.getServiceGradeCountLevel2()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">服务台评价3星</td><td align="left"><%=statistics.getServiceGradeCountLevel3()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">服务台评价4星</td><td align="left"><%=statistics.getServiceGradeCountLevel4()%></td>
         </tr>
         <tr class="bbzxbg2">
                <td width="20%">服务台评价5星</td><td align="left"><%=statistics.getServiceGradeCountLevel5()%></td>
         </tr>
         
          <tr class="bbzxbg2">
                <td width="20%">&nbsp;</td><td align="left"><%=statistics.getMessage()%></td>
         </tr>
                           
 </tbody>
</table>            
                     
                     
</body>
</html>